package com.hitown.util;

import org.apache.poi.ss.formula.functions.T;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;
/**
 * @author
 * */
public class BaseServiceImpl<E> implements BaseMapper<E>{

    @Autowired
    private BaseMapper baseMapper;

    @Autowired
    public BaseMapper getBaseMapper() {
        return baseMapper;
    }

    @Autowired
    public void setBaseMapper(BaseMapper baseMapper) {
        this.baseMapper = baseMapper;
    }


    @Override
    public List<Map<String,Object>> getList(Map<String, Object> map) {
        return baseMapper.getList(map);
    }

    @Override
    public Integer getCount(Map<String, Object> map) {
        return baseMapper.getCount(map);
    }

    @Override
    public void insertSelective(E e) {
        baseMapper.insertSelective(e);
    }

    @Override
    public void insertBatch(List<E> e) {
        baseMapper.insertBatch(e);
    }

    @Override
    public void updateByPrimaryKeySelective(E e) {
        baseMapper.updateByPrimaryKeySelective(e);
    }

    @Override
    public void updateBatch(List<E> e) {
        baseMapper.updateBatch(e);
    }



}
